Page({
  data: {
    latitude:0,
    longitude:0,
    markers:[{
      id:0,
      latitude:39,
      longitude:116,
      iconPath:'/images/map-active.png',
      width:50,
      height:50
    }]
  },
  onLoad() {
    wx.getLocation({
      type:'gcj02',
      success:(res)=>{
        console.log(res)
        this.setData({
          latitude:res.latitude,
          longitude:res.longitude
        })
      }
    })
  }
})